package com.ruoyi.common.customize.constants;

import java.util.Arrays;
import java.util.List;

/**
 * 通用属性名称常量类
 *
 * @author gdk
 * @since 2022/8/14 16:40
 */
public interface CommonFieldNameConstants {
    /**
     * id
     */
    String ID = "id";
    /**
     * createBy
     */
    String CREATE_BY = "createBy";
    /**
     * createTime
     */
    String CREATE_TIME = "createTime";
    /**
     * createName
     */
    String CREATE_NAME = "createName";
    /**
     * updateBy
     */
    String UPDATE_BY = "updateBy";
    /**
     * updateTime
     */
    String UPDATE_TIME = "updateTime";
    /**
     * updateName
     */
    String UPDATE_NAME = "updateName";
    /**
     * status
     */
    String STATUS = "status";
    /**
     * isDeleted
     */
    String IS_DELETED = "isDeleted";
    /**
     * serialVersionUID
     */
    String SERIAL_VERSION_UID = "serialVersionUID";

    /**
     * 新增需要初始化的字段
     */
    List<String> INSERT_ABOUT_FIELD = Arrays.asList(CommonFieldNameConstants.ID,
            CommonFieldNameConstants.CREATE_BY,
            CommonFieldNameConstants.CREATE_TIME,
            CommonFieldNameConstants.CREATE_NAME,
            CommonFieldNameConstants.UPDATE_BY,
            CommonFieldNameConstants.UPDATE_TIME,
            CommonFieldNameConstants.UPDATE_NAME,
            CommonFieldNameConstants.STATUS,
            CommonFieldNameConstants.IS_DELETED);

    /**
     * 修改需要初始化的字段
     */
    List<String> UPDATE_ABOUT_FIELD = Arrays.asList(CommonFieldNameConstants.UPDATE_BY,
            CommonFieldNameConstants.UPDATE_TIME,
            CommonFieldNameConstants.UPDATE_NAME);
}
